package com.zxp.eureka.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zxp
 * @date 2021/8/5 14:19
 */
@RestController
public class IndexContrller {

    @Value("${server.port}")
    public String port;

    @GetMapping("/")
    public String index(){
        return "微服务："+port;
    }
}
